/*
 * @Author: WuFeng <763467339@qq.com>
 * @Date: 2022-03-22 12:12:49
 * @LastEditTime: 2023-04-04 12:25:44
 * @LastEditors: WuFeng <763467339@qq.com>
 * @Description: 导航管理接口
 * @FilePath: \vue3-element-plus-web\src\api\nav.js
 * @Copyright 版权声明
 */

// import request from '@/utils/request'

/**
 * @description 获取列表
 */
export function getList(params) {
  return new Promise(function(resolve) {
    resolve({
      msg: '\u7b7e\u540d\u8fc7\u671f',
      data: {
        records: [
          {
            id: 1,
            name: '张三',
            pwd: '123456',
            updateTime: '2022-08-13 22:20:20',
            status: '0',
            orderNum: 1,
            type: 1,
            createTime: '2022-08-12 22:20:20'
          },
          {
            id: 2,
            name: '李四',
            pwd: '123456',
            updateTime: '2022-08-13 22:20:20',
            status: '1',
            orderNum: 11,
            type: 1,
            createTime: '2022-08-12 22:20:20'
          },
          {
            id: 3,
            name: '王五',
            pwd: '123456',
            updateTime: '2022-08-13 22:20:20',
            status: '1',
            orderNum: 11,
            type: 1,
            createTime: '2022-08-12 22:20:20'
          },
          {
            id: 4,
            name: '崔六',
            pwd: '123456',
            updateTime: '2022-08-13 22:20:20',
            status: '1',
            orderNum: 11,
            type: 2,
            createTime: '2022-08-12 22:20:20'
          }
        ],
        total: 102
      },
      code: 200
    })
  })
  // const data = params
  // return request({
  //   url: '/nav/list',
  //   method: 'post',
  //   data
  // })
}

/**
 * @description 添加保存
 * @param {*} params
 */
export function addSave(params) {
  return new Promise(function(resolve) {
    resolve({
      msg: '\u7b7e\u540d\u8fc7\u671f',
      data: {},
      code: 200
    })
  })
  // const data = params
  // return request({
  //   url: '/nav/add',
  //   method: 'post',
  //   data
  // })
}

/**
 * @description 编辑保存
 * @param {*} params
 */
export function updateSave(params) {
  return new Promise(function(resolve) {
    resolve({
      msg: '\u7b7e\u540d\u8fc7\u671f',
      data: {},
      code: 200
    })
  })
  // const data = params
  // return request({
  //   url: '/nav/edit',
  //   method: 'post',
  //   data
  // })
}

/**
 * @description 删除保存
 * @param {*} params
 */
export function deleteSave(params) {
  return new Promise(function(resolve) {
    resolve({
      msg: '\u7b7e\u540d\u8fc7\u671f',
      data: {},
      code: 200
    })
  })
  // const data = params
  // return request({
  //   url: '/nav/delete',
  //   method: 'post',
  //   data
  // })
}

export default {}
